/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package NhanVien;

import java.util.Vector;

/**
 *
 * @author Tuan
 */
public class NhanVien {
    private String msNV;
    private String tenNV;
    private String viTri;
    private int caLam;
    private double luong;
    private double tienPS;//Tien phat sinh
    
//Constructor
    public NhanVien(String msNV,String tenNV, String viTri, int caLam, double luong) {
        this.msNV = msNV;
        this.tenNV = tenNV;
        this.viTri = viTri;
        this.caLam = caLam;
        this.luong = luong;
    }

//getter
//    public Info getInfo(){
//        return this.info;
//    }
    public String getMSNV(){
        return this.msNV;
    }
    public String getViTri() {
        return viTri;
    }

    public int getCaLam() {
        return caLam;
    }

    public double getLuong() {
        return luong;
    }

    public double getTienPS() {
        return tienPS;
    }

//Setter
//    public void setInfo(Info info){
//        this.info = info;
//    }
    public void setMSNV(String ms){
        this.msNV = ms;
    }
    public void setViTri(String viTri) {
        this.viTri = viTri;
    }

    public void setCaLam(int caLam) {
        this.caLam = caLam;
    }

    public void setLuong(double luong) {
        this.luong = luong;
    }

    public void setTienPS(double tienPS) {
        this.tienPS = tienPS;
    }
    // getinfo
    public Vector toVector(){
        Vector vtNV = new Vector();
        vtNV.add(this.msNV.toString());
        vtNV.add(this.tenNV);
        vtNV.add(this.viTri);
        vtNV.add(this.caLam+"");
        vtNV.add(this.luong+"");
        vtNV.add("true");
        return vtNV;
    }
    
}
